package com.cdtu.outtake.service.impl;

import com.cdtu.outtake.dao.SchoolDao;
import com.cdtu.outtake.domain.School;
import com.cdtu.outtake.service.ISchoolService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author : shl
 * @Date 2024/3/4 18:06
 */
@Service
@RequiredArgsConstructor
public class SchoolServiceImpl implements ISchoolService {
    private final SchoolDao schoolDao;

    @Override
    public List<School> findAllSchools() {
        return schoolDao.findAll();
    }
}
